package com.dalonedrow.engine.ui.base;

public interface View {
	/**
	 * Handles a key event.
	 * @param character the character entered
	 */
	boolean keyTyped(char character);
	/**
	 * Checks the mouse position and changes the cursor when over a gui
	 * component.
	 * @param x the x position
	 * @param y the y position
	 */
	void handleMouseOver(float x, float y);
	/**
	 * Handles a mouse press event.
	 */
	boolean touchUp(int x, int y, int pointer, int button);
	/**
	 * Prepares the {@link View} for the rendering loop.
	 * @throws Exception if an error occurs
	 */
	void prepareForRendering() throws Exception;
}
